﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class admin_user_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GetList();
    }
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        GetList();
    }

    protected void GetList()
    {
        int num;
        DataSet ds = new Cstudy.BLL.Users().SelectUser(AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, out num, "@count");
        AspNetPager1.RecordCount = num;
        if (ds != null)
        {
            GridView1.DataSource = ds;
            GridView1.DataBind();
        }
    }
}